package com.gk.springauth2auth.service.impl;

import com.gk.springauth2auth.dao.UserMapper;
import com.gk.springauth2auth.entity.UserDO;
import com.gk.springauth2auth.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户业务信息查询接口实现类
 * @Author: poison
 * @Date: 2020/10/17 22:44
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    /**
     * 通过用户姓名查询用户信息
     * @return
     */
    @Override
    public UserDO loadUserByUserName(String userName) {
        return userMapper.loadUserByUserName(userName);
    }
}
